public class ThreadAble implements Runnable {
    String name ;
    public ThreadAble(String name){
        this.name = name;
    }

    @Override
    public void run() {
        if(name.equals("T1")){
            try {
                Yparallel.tag = "@Thread1";
                cucumber.api.cli.Main.main(Yparallel.argString());
            } catch (Throwable throwable) {
                throwable.printStackTrace();
            }
        }else if (name.equals("T2")){
            try {
                Yparallel.tag = "@Thread2";
                cucumber.api.cli.Main.main(Yparallel.argString());
            } catch (Throwable throwable) {
                throwable.printStackTrace();
            }
        }else {
            System.out.println("nothing");
        }
    }

    public static void main(String[] args) {
        new Thread(new ThreadAble("T1")).start();
        new Thread(new ThreadAble("T2")).start();
    }
}
